
import java.awt.Point;

public class UnitInfantry extends Unit{

	public UnitInfantry(Point coord, Integer s) {
		super(coord, s);	// Call super class's constructor
		unitTypeID = Unit.UNIT_TYPE_ID_INFANTRY;
		unitName = "Ingantry";
		unitDescription = "Major ground force of mordern war. They can move wide on the field by foot.";
		hitPoint = remainingHitPoint = 80;
		attackPower = 30;
		motionPoint = 10;
		
		/*
		 * Set attackable area
		 */
		rltAttackableArea.add(new Point(1, 0));
		rltAttackableArea.add(new Point(0, 1));
		rltAttackableArea.add(new Point(-1, 0));
		rltAttackableArea.add(new Point(0, -1));	
		
		/*
		 * Load unit images
		 */
		if(side == Unit.UNIT_SIDE_ID_USER1) {
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_INFANTRY_1));
		}
		else {
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_INFANTRY_2));
			
		}
		
		/*
		 * Set original block image
		 */
		setUnitImageIndex(0);
	}
}
